define(function(require, exports, module){
	require("resource/js/easyui/themes/icon.css");
	require("resource/js/easyui/easyloader.js");
	var AJAX = require("resource/js/component/ajax.js");
	var EUtil = require("resource/js/component/easyutil.js");
	var easycombobox = require("resource/js/component/easycombobox.js");

	var  datagridconfig = undefined;
	var dgutil = undefined;
	var config = {
		type:"process",
		name:"水稳摊铺压实报警列表",
		column:[[
			{field:'id',title:'主键ID',width:100,align:'center',height:50,hidden:true},
			{field:'sectionId',title:'标段ID',width:100,align:'center',height:50,hidden:true},

			{field:'upTime',title:'时间',width:100,align:'center',height:50,hidden:false},

			{field:'vehicleNo',title:'车辆编号',width:100,align:'center',height:50,hidden:false},

			{field:'vehicleName',title:'车辆名称',width:100,align:'center',height:50,hidden:false},

			{field:'curMileage',title:'当前里程',width:100,align:'center',height:50,hidden:false},

			{field:'alarmType',title:'报警类型',width:100,align:'center',height:50,hidden:false},

			{field:'alarmMsg',title:'报警信息',width:100,align:'center',height:50,hidden:false},

		]]
	}
	
	var initpage = function(){
		dgutil = EUtil.ajaxDataGrid(datagridconfig);
	}
	module.exports = {
		trans:function(){
			var sectionId = sessionStorage.getItem('sectionId');
			if(sectionId == null){
				sectionId = 0;
			}
			datagridconfig = {
				fitColumns:true,
				singleSelect:false,
				striped:true,
				autoRowHeight:false,
				fit: true,
				// toolbar:buttons,
				columns:config.column,
				eid:"dg",
				url:BASEPATH+'/dcs/water/waterMonitorAction/queryAlarmWaterList.htm?sectionId='+sectionId,
			};
			
			using(["datagrid","parser","textbox","numberbox","dialog","combobox","datetimebox","validatebox","messager"],function(){
				initpage();
			});
		}
	}
});
